import java.util.Random;

/**
 * @Author: Miyako
 * @Date: 2024-08-25-16:03
 * @Description:奖励飞机
 */
public class Bee extends FlyingObject{
    private int xSpeed;//x轴移动速度
    private int ySpeed;//y轴移动速度
    private int awardType;//奖励类型

    public Bee(){
        width=60;
        height=51;
        Random random = new Random();
        int choose = random.nextInt();
        if (choose==1)//让小蜜蜂从左右两边随机出现
            x=World.WIDTH;
        else
            x=-width;
        y=random.nextInt(500+height);
        xSpeed=2;
        ySpeed=2;
        awardType=random.nextInt(2);
    }

}
